package com.hwl.demo10.service;

/**
 * 抽象观察者
 *
 * @author sentry
 * @since 2023-03-19
 */
public abstract class Observer {

    protected String name;
    protected Subject sub;

    public Observer(String name, Subject sub) {
        this.name = name;
        this.sub = sub;
    }

    public abstract void update();
}
